| 147 | } |
| 148 | |
| 149 | void cScriptingEngine::debuggerEnable() { |
| 150 | |
| 151 | #ifdef OF_JS_DEBUG |
| 152 | g_Debugger->Error("Debugger enabled, create socket and wait for connection\n"); |
| 153 | duk_trans_socket_init(); |
| 154 | duk_trans_socket_waitconn(); |
| 155 | g_Debugger->Error("Debugger connected\n"); |
| 156 | |
| 157 | duk_debugger_attach(mContext, |
| 158 | duk_trans_socket_read_cb, |
| 159 | duk_trans_socket_write_cb, |
| 160 | duk_trans_socket_peek_cb, |
| 161 | duk_trans_socket_read_flush_cb, |
| 162 | duk_trans_socket_write_flush_cb, |
| 163 | debugger_request, |
| 164 | debugger_detached, |
| 165 | NULL); |
| 166 | #endif |
| 167 | } |
| 168 | |
| 169 | cScriptingEngine::cScriptingEngine() { |
| 170 |
no test coverage detected