Skip to content

Commit

Permalink
Start separate debug adapters for Metro and JS debugging (#1008)
Browse files Browse the repository at this point in the history
Refactors the changes introduced in #964 to separate logging metro
messages and JS debugging into separate DAP Sessions. This will also
make integrating #1001 easier with other changes made to `DebugAdapter`.

### How Has This Been Tested: 
Open an app and check the debugger still works correctly:
- breakpoints and uncaught errors should still stop the application
- debugger controls in the preview should resume/step over breakpoints
- check profiling still works
- check if Metro errors are logged to the debug console.
  • Loading branch information
jwajgelt authored Mar 7, 2025
1 parent 8283c8a commit ea9042e
Show file tree
Hide file tree
Showing 7 changed files with 524 additions and 398 deletions.
11 changes: 10 additions & 1 deletion packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,16 @@
"debuggers": [
{
"type": "com.swmansion.react-native-debugger",
"label": "Radon IDE internal debugger for React Native",
"label": "Radon IDE internal debugger for React Native projects",
"hiddenWhen": "true",
"languages": [
"javascript",
"typescript"
]
},
{
"type": "com.swmansion.js-debugger",
"label": "Radon IDE internal JavaScript debugger",
"hiddenWhen": "true",
"languages": [
"javascript",
Expand Down
Loading

0 comments on commit ea9042e

Please sign in to comment.