Visual Code's "Launch on Android" is not working


#1

When I select the “Launch on Android” configuration from Visual Code, I see a small blue line is basically cycling just below the Launch button. I enabled Diagnostic Logging in my launch.json. Here’s what it is outputting:

initialize({“clientID”:“vscode”,“adapterID”:“nativescript”,“pathFormat”:“path”,“linesStartAt1”:true,“columnsStartAt1”:true,“supportsVariableType”:true,“supportsVariablePaging”:true,“supportsRunInTerminalRequest”:true,“locale”:“en-us”})
launch({“name”:“Launch on Android”,“type”:“nativescript”,“request”:“launch”,“platform”:“android”,“appRoot”:"",“sourceMaps”:true,“watch”:true,“diagnosticLogging”:true,"__sessionId":“742881f9-d9e2-4db5-8eba-1ac08b76e56a”})

if I used ‘tns run android’ or ‘tns debug android’, then things work just fine. It appears the problem is solely with launching the debugger from Visual Code.

Anyone have any clues on how to get this to work?
Thanks!
Dan


#2

#3

Hi, I’m guessing you’re using VSCode 1.20 on Windows. I just spent a day fixing this issue. Well, half of it was installing Windows on my Mac, actually :smile:

Once this is merged and published it should work again: https://github.com/NativeScript/nativescript-vscode-extension/pull/159


#4

Thanks for your hard work!!!