$ntask
Version information
Introduced in version v0.1
This macro is considered stable
About
The $ntask macro informs the debug server of a newly spawned thread/task. It should be the first line of code ever executed during a tasks runtime, otherwise other debug macros may not work.
Common pitfall
When $ntask falls out of scope it will automatically prevent the debugger from supervising the task, make sure that the scope its called in lives until the task is ready to end.
Notes
Required environment
- This macro requires the debug server to have been initialized before being called.
Task names
Make sure that every task has a unique name otherwise tasks can be confused internally by the debug server.
Example
- Our thread is now supervised and we can begin to use other debug macros.
- For more information on
$functionlook here