Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Cannot debug with ionic serve and app-scripts 0.0.41 #330

Closed
jmesa-sistel opened this issue Nov 8, 2016 · 1 comment
Closed

Cannot debug with ionic serve and app-scripts 0.0.41 #330

jmesa-sistel opened this issue Nov 8, 2016 · 1 comment

Comments

@jmesa-sistel
Copy link

In windows 10 I have config VSCode to debug a simple ionic app.
Steps:
Create app: ionic start cutePuppyPics --v2
In home.html add a button:
<button (click)="OnClick()">Test</button>
In home.ts add a function:
OnClick() { console.log('test clicked!'); }

Run ionic serve

In VSCode select debug with chrome, open debug config (launch.json).
In 'Launch Chrome against localhost, with sourcemaps' configuration change url to: http://yourip:8100
Add "userDataDir": "${workspaceRoot}\chromeDummyDir", to launch a new chrome navigator.
Add a breakpoint in 'console.log('test clicked!');' line.
Press F5 to debug
You will see that the breakpoint is misplaced, press the Test button, you will notice that the breakpoint does not work.

@jmesa-sistel jmesa-sistel changed the title Cannot debug with ionic serve and app-scripts 0.41 Cannot debug with ionic serve and app-scripts 0.0.41 Nov 8, 2016
@danbucholtz
Copy link
Contributor

This is resolved now.

Thanks,
Dan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants