MCPcopy Create free account
hub / github.com/beefytech/Beef / DbgVisFailed

Method DbgVisFailed

IDEHelper/WinDebugger.cpp:6024–6037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6022}
6023
6024void WinDebugger::DbgVisFailed(DebugVisualizerEntry* debugVis, const StringImpl& evalString, const StringImpl& errors)
6025{
6026 bool onlyMemError = errors.StartsWith("Failed to read") && !errors.Contains('\n');
6027 if ((!debugVis->mShowedError) && (!onlyMemError))
6028 {
6029 debugVis->mShowedError = true;
6030 String errStr = StrFormat("DbgVis '%s' failed while evaluating condition '%s'\n", debugVis->mName.c_str(), evalString.c_str());
6031 String spacedErrors = errors;
6032 spacedErrors.Insert(0, " ");
6033 spacedErrors.Replace("\n", "\n ");
6034 errStr += spacedErrors;
6035 OutputMessage(errStr);
6036 }
6037}
6038
6039bool WinDebugger::EvalCondition(DebugVisualizerEntry* debugVis, DbgCompileUnit* dbgCompileUnit, DbgTypedValue typedVal, DwFormatInfo& formatInfo, const StringImpl& condition, const Array<String>& dbgVisWildcardCaptures, String& errorStr)
6040{

Callers

nothing calls this directly

Calls 5

StartsWithMethod · 0.45
ContainsMethod · 0.45
c_strMethod · 0.45
InsertMethod · 0.45
ReplaceMethod · 0.45

Tested by

no test coverage detected