Skip to content

Commit

Permalink
fix: process attachment with --inspect=:1234 style (#2064)
Browse files Browse the repository at this point in the history
Fixes #2063
  • Loading branch information
connor4312 authored Aug 30, 2024
1 parent 105ccb4 commit 9084de6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he

## Nightly (only)

Nothing, yet
- fix: process attachment with `--inspect=:1234` style ([#2063](https://github.com/microsoft/vscode-js-debug/issues/2063))

## v1.93 (August 2024)

Expand Down
1 change: 1 addition & 0 deletions src/ui/processTree/processTree.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('process tree', () => {
describe('analyze arguments', () => {
const tt = [
{ input: 'node --inspect', address: '127.0.0.1', port: 9229 },
{ input: 'node --inspect=:1234', address: '127.0.0.1', port: 1234 },
{ input: 'node --inspect=0.0.0.0', address: '0.0.0.0', port: 9229 },
{ input: 'node --inspect=0.0.0.0:1234', address: '0.0.0.0', port: 1234 },
{ input: 'node --inspect=[::1]:1234', address: '[::1]', port: 1234 },
Expand Down
7 changes: 6 additions & 1 deletion src/ui/processTree/processTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ const DEBUG_FLAGS_PATTERN = once(() => {
'|',

// Simple port:
'(?<port2>\\d+)?',
[
'(?:',
':?', // optional ':' before port, #2063
'(?<port2>\\d+)?',
')',
],

')',
],
Expand Down

0 comments on commit 9084de6

Please sign in to comment.