To trigger breakpoint in Javascript, you can add a 'debugger' in your code. For example:
function testing() {
alert(123);
debugger;
alert(456);
}
The debugger will be triggered at runtime.
Showing posts with label debug. Show all posts
Showing posts with label debug. Show all posts
Thursday, August 21, 2014
Wednesday, November 2, 2011
Debug mode in Eclipse and Tomcat
For Tomcat:
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
catalina.bat jpda start
For Eclipse:
Set Connection Port (8000) and Connection Host (localhost) in "Run > Debug Configurations"
Configuration Type: "Remote Java Application"
Set connection port to "8000"
Set connection host to "localhost"
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
catalina.bat jpda start
For Eclipse:
Set Connection Port (8000) and Connection Host (localhost) in "Run > Debug Configurations"
Configuration Type: "Remote Java Application"
Set connection port to "8000"
Set connection host to "localhost"
Subscribe to:
Posts (Atom)
CSP on Apache
To add CSP to root if sort of funny. The following will NOT work for most cases !! <LocationMatch "^/$"> Header s...
-
When Office2003 couldn't find file SKU011.CAB: regedit -> [HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Office] -...
-
The resolution can be changed by editing the BlueStack's registry: HKLM\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and ...
-
Suppose you got a file in Big5 containing some HKSCS characters (e.g. 深水埗, 赤鱲角, etc). When your environment (Ref: Charset.defaultCharset( ) ...