Code-server: Appengine debug not working for Python

Created on 6 Apr 2019  ·  8Comments  ·  Source: cdr/code-server

No existing issue found that is related to appengine debugging for Python

  • code-server version:
    1.604-vsc1.32.0

  • OS Version: Running on Ubuntu 16.04 compute engine Google Cloud

Description

I am trying to debug Appengine, the debugger connects (I see logging scrolling by), however breakpoints are never hit.

Steps to Reproduce

  1. Create task.json config that can launch appengine with a startup script (based on the instructions in the documentation)
  2. Attach the debugger to the running process and the status bar turns red proving that the debugger is connected
  3. see the appengine server logging scrolling in the debug console window
  4. set a breakpoint anywhere in code hosted by appengine (Python)
  5. breakpoint is never hit
bug

Most helpful comment

Will definitely fix this. Thanks for the report and detailed info!

All 8 comments

Thanks for the report!

Could you try using this pre-release?

pydev_startup.py.txt
laucnh json config debug attach.txt
task json appengine debug.txt

Thanks for the report!

Could you try using this pre-release?

Just tried it, still not working, however when I debug one of the api calls and set a breakpoint, my browser seems to hang for moment and after a few minutes see some logging statements around my breakpoint passing by, but it does not stop and hit my breakpoint. It seems to be very laggy though, so maybe it is doing something. But the call succeeds and returns a response to the browser but did not pause and stop at my breakpoint.

I am using tasks to start up appengine with the startup script that waits for attach, as soon as I then startup the launch configuration that attaches to the given port and ip, my debugger connects and I see appengine starting properly after the attach and the logging appearing in the debug console. I also see the set breakpoints but it never stops at those breakpoints.

Can I sent some logging or something? If so what logging would you like to see? Or you can even login to my vscode server remotely if you want to see and try it for your self (I can hop on a Google Meet if you like).

I have added a screenshot with the debugger running and a curl statement that I run that should trigger the breakpoint.
I also added the pydev_startup.py and launch and task configuration (snippets).
Gcloud version:
Google Cloud SDK 241.0.0
app-engine-python 1.9.85
app-engine-python-extras 1.9.74
beta 2019.02.22
bigtable
bq 2.0.43
cbt
cloud-datastore-emulator 2.1.0
core 2019.04.02
gsutil 4.38
pubsub-emulator 2018.02.02
python 2.7.12
ptvsd 4.2.6
Thanks,

Edwin
Screenshot 2019-04-06 at 11 26 16 AM

Will definitely fix this. Thanks for the report and detailed info!

Will definitely fix this. Thanks for the report and detailed info!

That would be awesome! this is one of the most important features for our team!

@kylecarbs any news on this issue?

AFAIK AppEngine works using containers, so it won't work since our friends over at Theia also encountered the same issue with debugging, and putting it in privileged mode is the only way.

Can you explain what you mean setting it in privileged mode?

On Fri, Nov 15, 2019, 2:32 PM Ayane Satomi notifications@github.com wrote:

AFAIK AppEngine works using containers, so it won't work since our friends
over at Theia also encountered the same issue with debugging, and putting
it in privileged mode is the only way.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cdr/code-server/issues/449?email_source=notifications&email_token=ADS23DUSGBDAHBK4WSN73J3QT2QIRA5CNFSM4HEAEBMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEFNWII#issuecomment-554359585,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADS23DXLYYZFV763LQN3JD3QT2QIRANCNFSM4HEAEBMA
.

--

https://www.energyworx.com/

https://www.energyworx.com/
According
to Gartner's Magic Quadrant for 
Meter Data Management the only visionary
vendor
"References continue to rate the product's flexibility,
performance
and analytics capabilities as high"
Source: Gartner (December 2018)

Energyworx NL | Hoofdveste 32a | Houten | The Netherlands | Phone: +31
(020) 217 00 11
Energyworx USA | 44 Tehama Street | San Francisco | USA |
Phone: +1 (415) 448 5669 https://g.bettercloud.com/ 

This email and
any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. If you have
received this email in error please notify us at [email protected]
info@energyworx.com. This message contains confidential
information and is intended only for the individual named. If you are not
the named addressee you should not disseminate, distribute or copy this
email. Please notify us at [email protected] info@energyworx.com
immediately if you have received this email by mistake and delete this
email from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.
Energyworx and the Energyworx-logo are trademarks from Energyworx and filed
worldwide.

Please try with the latest version. If this is still a problem, please feel free to reopen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchecinski picture pchecinski  ·  3Comments

grant picture grant  ·  3Comments

chrischabot picture chrischabot  ·  3Comments

korzq picture korzq  ·  3Comments

balazssoltesz picture balazssoltesz  ·  3Comments