debugging - Debug on cloud foudry with IntelliJ -
does of has tried remote-debug app running in cloud foundry using intellij? setup?
you should add manifest.yml following:
env: jbp_config_debug: '{enabled: true}'
push application
open project in intellij ide
open run configuration
click on + button , add remote configuration (transport should "socket" & , debugger mode should "attach")
host: localhost port: 8000
note: verify debug entries have following entry
env: -xdebug -xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
- click , apply , close window.
- open terminal set ssh tunnel debug framework
- put following command in cli
cf ssh -n -t -l 8000:localhost:8000 myapp
put bp @ code , click on debug button
you should see following in debug tab (the debug socket connected)
connected target vm, address: 'localhost:8000', transport: 'socket'
- run application url in browser , should stop in breakpoint.
Comments
Post a Comment