60frames / webpack-hot-server-middleware

:fire: Hot reload webpack bundles on the server
MIT License
324 stars 50 forks source link

Debug breakpoints server side not working #62

Open guilhermecvm opened 6 years ago

guilhermecvm commented 6 years ago

Has anyone been able to debug using breakpoints (server side) when using this middleware? They stay in the "unverified" state... Tried using the example app

image

richardscarrott commented 6 years ago

@guilhermecvm I've not had problems with breakpoints using chrome dev tools:

screen shot 2018-03-02 at 10 32 33

I don't use the debugger in vscode however so perhaps that's the issue (assuming that is a screenshot from vscode?)

guilhermecvm commented 6 years ago

@richardscarrott sorry for the delay, I was on holidays.

It also works for me when using "debugger breakpoints", but it doesn't work if I try adding a breakpoint by clicking the line in the source code. As you can see in your screenshot thats not the source file, but the compiled one.

richardscarrott commented 6 years ago

@guilhermecvm could you please confirm which IDE you're referring to?

guilhermecvm commented 6 years ago

@richardscarrott sure thats vscode