Log all network interactions of Java application

A quick way to log all SSL traffic is to startup java with: -Djavax.net.debug=all Or set it as a system property: System.setProperty(“javax.net.debug”, “all”); Brace yourself. Standard out gets NOISY if you do this! (*Note: only logs SSL traffic and SSL debug info (handshakes, etc). Regular sockets are not logged.)

ipdb debugger, step out of cycle

I believe this is the intent of the until command. It’s like a next except that when a jump occurs to a previous line number for the loop, it will continue until exiting the loop. unt(il) Continue execution until the line with a number greater than the current one is reached or until the current … Read more

Debugging Tomcat in Docker container

This is the command I use for this: docker run -it –rm \ -e JPDA_ADDRESS=8000 \ -e JPDA_TRANSPORT=dt_socket \ -p 8888:8080 \ -p 9000:8000 \ -v D:/tc/conf/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml \ tomcat:8.0 \ /usr/local/tomcat/bin/catalina.sh jpda run Explanation -e JPDA_ADDRESS=8000debugging port in container, passed as environment variable -e JPDA_TRANSPORT=dt_sockettransport type for debugging as socket, passed as environment variable -p … Read more

In the VS Code “Debug Console”, run a JavaScript await function

VS Code Debug Console supports top level async/await (https://github.com/microsoft/vscode-js-debug#top-level-await) however the issue might be you’re paused on the breakpoint. if you use await while paused on a breakpoint, you’ll only get a pending Promise back. This is because the JavaScript event loop is paused while on a breakpoint.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)