[PR #309] [MERGED] [dev-QoL] add debug script to package.json #343

Closed
opened 2026-03-03 13:54:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jehna/humanify/pull/309
Author: @0xdevalias
Created: 2/7/2025
Status: Merged
Merged: 2/7/2025
Merged by: @jehna

Base: mainHead: 0xdevalias/add-debug-script


📝 Commits (1)

  • 7fa335d add debug script to package.json

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 package.json (+1 -0)

📄 Description

This is a tiny dev Quality of Life PR that adds a simple debug script to package.json that allows running the app through tsx with node's --inspect-brk flag; which then allows connecting to it for remote debugging, eg. from chrome:inspect or similar:

⇒ npm run debug

> humanifyjs@2.2.2 debug
> node --inspect-brk ./node_modules/.bin/tsx src/index.ts

Debugger listening on ws://127.0.0.1:9229/b6551278-6c59-4156-9555-8c517afd509c
For help, see: https://nodejs.org/en/docs/inspector

chrome://inspect/#devices:

image

image

See also


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jehna/humanify/pull/309 **Author:** [@0xdevalias](https://github.com/0xdevalias) **Created:** 2/7/2025 **Status:** ✅ Merged **Merged:** 2/7/2025 **Merged by:** [@jehna](https://github.com/jehna) **Base:** `main` ← **Head:** `0xdevalias/add-debug-script` --- ### 📝 Commits (1) - [`7fa335d`](https://github.com/jehna/humanify/commit/7fa335d794b6378a0dc9146e76bae4c91e4dabc5) add debug script to package.json ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -0) </details> ### 📄 Description This is a tiny dev Quality of Life PR that adds a simple `debug` script to `package.json` that allows running the app through `tsx` with `node`'s [`--inspect-brk`](https://nodejs.org/en/learn/getting-started/debugging#command-line-options) flag; which then allows connecting to it for remote debugging, eg. from `chrome:inspect` or similar: ```shell ⇒ npm run debug > humanifyjs@2.2.2 debug > node --inspect-brk ./node_modules/.bin/tsx src/index.ts Debugger listening on ws://127.0.0.1:9229/b6551278-6c59-4156-9555-8c517afd509c For help, see: https://nodejs.org/en/docs/inspector ``` `chrome://inspect/#devices`: ![image](https://github.com/user-attachments/assets/87ca262c-83c6-479a-b6a8-51ea96c60358) ![image](https://github.com/user-attachments/assets/3fc208b4-ff21-4b10-b4d2-4cb0cd246f60) ## See also - https://nodejs.org/en/learn/getting-started/debugging - https://github.com/jehna/humanify/pull/308 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 13:54:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/humanify#343
No description provided.