Hi,
Is there a way to use the PyCharm debugger with Chalice? There is chalice local but this does not run inside PyCharm.
Thanks.
I don't use PyCharm but I downloaded it and looked and it has an option Run-> Attach to Local Process... which after running chalice local in a terminal there was an item in that list that ended with chalice local. I clicked on that and it appeared to work. I didn't play with it and I am not familiar with PyCharm at all, but I would venture a yes. Does that do what you want?
Thanks John, this works! I followed the instructions here (including Ubuntu prerequisites): https://www.jetbrains.com/help/pycharm/attaching-to-local-process.html
I was able to set a breakpoint and use the debugger like I would with Flask. So this does what I want.
Thanks for all your work on this.
I realize this is closed, but FWIW you can debug directly from PyCharm without having to run chalice via terminal and _then_ attaching to process. You can create a custom Debug configuration.
chalice executable.local.Click Debug for the newly created configuration!
I realize this is closed, but FWIW you can debug directly from PyCharm without having to run chalice via terminal and _then_ attaching to process. You can create a custom Debug configuration.
- Set Script path to the path of your
chaliceexecutable.- Set Parameters to
local.- Set Working directory to the directory of your chalice app.
Click Debug for the newly created configuration!
This will show me the stdout in the debug console but will not stop at any of my breakpoints. any ideas?
@wpkita How did you get this to work? Pycharm doesn't stop at my breakpoint. @NotSoShaby Did you figure this out?

This is what my configuration currently looks like. The local server runs, but non of my breakpoints get hit when I run in 'Debug' (clicking on the green bug icon in Pycharm). Any ideas?
I changed my Parameters to local --no-autoreload as the temporary work around as suggested in this issue and now it works
@aoben10 Make sure you're hitting the "debug" button. I just kept hitting "play".... /fail
Most helpful comment
I changed my Parameters to
local --no-autoreloadas the temporary work around as suggested in this issue and now it works