cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

 

Screenshot 2025-09-09 010919.pngScreenshot 2025-09-09 011051.pngScreenshot 2025-09-09 011031.png
    

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.

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Likes

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.