dbg_section_delete

此函数删除以前使用dbg_section添加的调试节。

 

语法:

dbg_section_delete(section);

参数类型描述
sectionDebug Section Pointer指向dbg_section返回的调试节的指针

 

返回:

N/A

 

例子:

Create Event

config_section = dbg_section("Config");

Key Pressed Event - Space

dbg_section_delete(config_section);

上面的代码首先在 Create 事件中使用名为 "Config" 的 dbg_section 创建一个新的调试部分。由于之前未调用 dbg_view,因此该部分会添加到名为 "Default" 的调试视图中。

在空格键按下事件中,使用dbg_section_delete删除调试部分。