MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / dbgWrite

Method dbgWrite

Source/Lua/CtrlrLuaDebugger.cpp:33–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void CtrlrLuaDebugger::dbgWrite(std::string data)
34{
35 owner.getOwner().getWindowManager().show (CtrlrPanelWindowManager::LuaMethodEditor);
36
37 CtrlrLuaMethodEditor *ui = dynamic_cast<CtrlrLuaMethodEditor *>(owner.getOwner().getWindowManager().getContent(CtrlrPanelWindowManager::LuaMethodEditor));
38
39 // Paused at file disableMidi line 7 (1) (breakpoint)
40
41 if (_STR(data).contains ("Paused at"))
42 {
43 if (_STR(data).contains ("(breakpoint)"))
44 {
45 /* a breakppoint was hit */
46 }
47 commandQueue.add ("trace");
48 commandQueue.add ("vars");
49 }
50
51
52 if (ui)
53 {
54 return (ui->insertRawDebuggerOutput(_STR(data)));
55 }
56}
57
58std::string CtrlrLuaDebugger::dbgRead(std::string prompt)
59{

Callers

nothing calls this directly

Calls 6

showMethod · 0.45
getOwnerMethod · 0.45
getContentMethod · 0.45
containsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected