MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / showDebugInfo

Method showDebugInfo

MiniZincIDE/codeeditor.cpp:323–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void CodeEditor::showDebugInfo(bool show)
324{
325 if (filepath!="" && !filepath.endsWith(".mzn"))
326 show = false;
327 if (show) {
328 if(debugInfo->isHidden()){
329 debugInfo->show();
330 setViewportWidth(0);
331 }
332 } else {
333 if(!debugInfo->isHidden()){
334 debugInfo->hide();
335 setViewportWidth(0);
336 }
337 }
338}
339
340void CodeEditor::setViewportWidth(int)
341{

Callers 2

createEditorMethod · 0.80

Calls 1

isHiddenMethod · 0.80

Tested by

no test coverage detected