local pycharm flask javascript debug - hit breakpoint shows old file from "server"

I have a python / flask application I'm debugging. When I use the javascript debug, if the file has changed (since ?) the breakpoint gets hit but shows an old version of the file. I've been through the settings and can't see what the correct setting is.

I've tried with and without live edit turned on. I have the jetbrains ide support extension in my chrome browser, but the general flow seems to work better without it. But using it doesn't help as I still see old files sometimes.

I don't know if this is a clue, as I haven't done full test, but the file I'm currently seeing this in is from another project, yet is visible from this project. I opened the editor window into that file manually. (File > Open > filepath). I did a short test with a native project javascript file I'd changed during the session, and it did seem to find the right version.

What should be displayed is the current version at the breakpoint

What is displayed is a view of the local apache server based file, an old version

File > Reload all from disk doesn't help

Run > Update application (live edit) doesn't help

1 comment
Comment actions Permalink

Looks like problem was I needed to set up remote debugging (in place) and set up mapping for my out of project files. See https://www.jetbrains.com/help/pycharm/configuring-synchronization-with-a-remote-host.html

0

Please sign in to leave a comment.