I am trying to debug in VS Code using MDK with "Attach on Android". The output shows "Attached on Android (Android emulator detected)", but the debugger is not stopping at any breakpoints. Instead, it’s ignoring them and showing the following error in the Debug Console:
"Breakpoint ignored because generated code not found (source map problem?)"
"SourceMaps.getMapForGeneratedPath: exception while processing path: C:\Users\AKASHW~1\AppData\Local\Temp\MDKDebug\emulator-5554\com.grasim.smaMaiApp\bundle.492.js, sourcemap: bundle.js.map
SyntaxError: Unterminated string in JSON at position 212972 (line 1 column 212973)
at JSON.parse (<anonymous>)
at new SourceMap (c:\Users\Akash Washimkar\.vscode\extensions\sapse.vsc-extension-mdk-1.31.0\node_modules\vscode-chrome-debug-core\out\src\sourceMaps\sourceMap.js:19:25)
at c:\Users\Akash Washimkar\.vscode\extensions\sapse.vsc-extension-mdk-1.31.0\node_modules\vscode-chrome-debug-core\out\src\sourceMaps\sourceMapFactory.js:58:28"
Please refer to the attached screenshot. I'm getting this debugger console error and need help resolving it as soon as possible.
Request clarification before answering.
It looks like you are using definitions received from App Update. Please verify that when the metadata was deployed from BAS to Mobile Services you answered Yes to the "Include source map file for debugging?" question.
You can confirm this by looking at the .project.json for the SourceMap option
"Build": {
"SourceMap": true,
"TSTarget": "es6",
"WMF": true,
"Platform": "iOS & Android"
},If it is false, change it to true and redeploy from BAS. Then update the definitions on your client from Mobile Services and try again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.