debug typescript mocha and server in vscode

We recently are developing a graphql api using apollo server and Typeorm on top of Aws Lambda. Code-wise is kind of straightforward with schema defined, then resolvers then service layer then dao layer then model defined typeorm with its annotations/decorators. However there are 2 issues related to debugging, unit test and run graphql local. unit…

debug nodejs in chrome

The new chrome ships with the about:inspect and a dedicated debugger for nodejs which is super cool! At least we do not have to rely solely on console.log() magic. To do that, run script with an additional flag: node –inspect myServer.js This should fire up the app and then go to a new tab and enter about:inspect. Then…

debug hover item in chrome devtools

Chrome devtools is our friend, always. Today when I was developing an angular 4.x app with primeng library, i have to check the class set on the tooltip component. As we know the tooltip is hover event based, so if we hover on it to make it showup and then shift our focus to the…

How Java Debug works

You can just attach your IDE to a running application (which has been runned for debug as we’ll see later), or you can even debug it from command line. And the application you debug can even be be in a different machine. The magic lies in where the debug information actually resides. Apparently people normally…

debug nodejs with nodemon and intellij

Noticed that if I run nodemon within intellij, I would not be able to debug any more inside intellij. Not sure what reason it is. If just run the nodejs, no problem. However once I add the ‘/usr/local/bin/nodemon’ into the Node parameters of the run config, the breakpoint would not work. solution To solve this…

Debug GWT application in a remote browser(virtualbox)

In eclipse open your debug configuration and add the param -bindAddress YourIPOrDomain(replace the ip with the local ip address of your machine) to the arguments > program arguments. That’s how we debug in virtual box. In Intellij, just add the above param into the GWT Configruation’s Dev Mode parameters.