@@ -10,7 +10,7 @@
"type": "hl",
"hxml": "profiler.hxml",
"cwd": "${workspaceFolder}",
- "args": ["-out","Profile.json","-debug"],
+ "args": ["--out","Profile.json","--debug"],
"preLaunchTask": {
"type": "haxe",
"args": "active configuration"
@@ -354,7 +354,7 @@ static void profile_event( int code, vbyte *ptr, int dataLen ) {
break;
default:
if( code < 0 ) return;
- if( data.profiling_pause || (hl_get_thread()->flags & HL_THREAD_PROFILER_PAUSED) ) return;
+ if( data.profiling_pause || (code != 0 && (hl_get_thread()->flags & HL_THREAD_PROFILER_PAUSED)) ) return;
data.profiling_pause++;
data.waitLoop = true;
while( data.waitLoop ) {}