Skipping breakpoints remote debugger
Answered
Hi all,
sys:
- Pycharm 2021.2
- OS big sur
When I add a breakpoint/s to my script and try to debug pycharm skips these breakpoints. The solution to this issue (at least for me) was to manually deploy the project files (i.e. upload the file to the remote server). I thought that should happen automatically (that is how I configured it) but obviously it is not happening.
How can I make it happen that every change I make or even better before every debug/run command the files will sync automatically?
Cheers,
Please sign in to leave a comment.
Hello,
Do you have Preferences | Build, Execution, Deployment | Deployment | Options | Upload changed files automatically to the default server set to Always?
Sergey Karpov as you see it is set to always, I can see it also under the deployment configuration.
Does File | Save All trigger the upload of changed files?
No.
Please open your deployment settings and:
1) make sure you have your remote server selected as default
2) check that all paths at "Mappings" are filled in
Re (1): what do you mean by "default" ? this is the server I'm using as my remote interpreter.
Re (2): all the paths are filled as expected.
ok I found how to do it (BTW I think you should update your deployment tutorial and remote interpreter as well it won't require much time).
In addition, what if I work on multiple servers using the same project? each time changing the default server is required? can't the files be uploaded automatically to multiple servers at the same time?
*****
Update - even after I changed my default server still the the debugger skips breakpoints. Also the deployment menu is darked (un clickable) for manually uploading the files.
> BTW I think you should update your deployment tutorial and remote interpreter as well
Which one were you using and what should be updated?
> can't the files be uploaded automatically to multiple servers at the same time?
Create a server group and set it as a default server.
> Also the deployment menu is darked (un clickable) for manually uploading the files.
Try to right click a file > Deployment > Upload to...
I have another question, I pulled my local git repo but somehow when manually uploading the files to the remote server the files are still not updated. How can that be solved?
This should be inspected closely.
Please open Help > Diagnostic Tools > Debug Log Settings... and add #com.jetbrains.plugins.webDeployment and #com.intellij.ssh lines.
Reproduce the issue, run Help > **Collect Logs and Diagnostic Data** and share the resulting archive & let us know what files weren't changed.
You can share the logs in a support ticket via Help | Contact Support or via https://uploads.jetbrains.com/
Hi Dmitry Tronin
What about this problem?
I have another question, I pulled my local git repo but somehow when manually uploading the files to the remote server the files are still not updated. How can that be solved?
have you encountered it?
My current work around is to switch to other remote interpreter then switch back and sync files.
Sorry, can't add anything but what I already wrote without seeing the actual errors.
Please open Help > Diagnostic Tools > Debug Log Settings... and add #com.jetbrains.plugins.webDeployment and #com.intellij.ssh lines.
Reproduce the issue, run Help > Collect Logs and Diagnostic Data and share the resulting archive & let us know what files weren't changed.
You can share the logs in a support ticket via Help | Contact Support or via https://uploads.jetbrains.com/