nativescript-community / nativescript-vscode-extension

A Visual Studio Code Extension for NativeScript
https://www.nativescript.org/visual-studio-code
Apache License 2.0
82 stars 32 forks source link

Android breakpoints are not hit #143

Open hshristov opened 7 years ago

hshristov commented 7 years ago

Steps to reproduce:

  1. open main-page.js from template
  2. put a breakpoint
  3. select Launch on Android
  4. hit F5

If you add "stopsOnEntry": true and disable then re-enable breakpoints they will be hit.

craigsh commented 7 years ago

I've had a similar issue. Trying to run on an Android emulator, breakpoints don't get hit unless I set "stopsOnEntry": true in the configuration.

Plamen5kov commented 7 years ago

@hshristov @craigsh we found the problem and will fix it till the end of the week.

Plamen5kov commented 6 years ago

This is the expected behavior. If you want to hit breakpoints that are early in the application, please provide the --debug-brk flag in cli or stopsOnEntry=true in vs code.

hshristov commented 6 years ago

@Plamen5kov As I mentioned in the issue - I have --debug-brk. But I still need to disable/enable breakpoints in order to hit them...