@@ -916,13 +916,13 @@ protected async Task<bool> EvaluateCondition(SessionId sessionId, ExecutionConte
916
916
logger . LogDebug ( $ "Unable to evaluate breakpoint condition '{ condition } ': { ree } ") ;
917
917
SendLog ( sessionId , $ "Unable to evaluate breakpoint condition '{ condition } ': { ree . Message } ", token , type : "error" ) ;
918
918
bp . ConditionAlreadyEvaluatedWithError = true ;
919
- SendExceptionToTelemetry ( ree , "EvaluateCondition" , sessionId , token ) ;
919
+ ReportDebuggerExceptionToTelemetry ( "EvaluateCondition" , sessionId , token ) ;
920
920
}
921
921
catch ( Exception e )
922
922
{
923
923
Log ( "info" , $ "Unable to evaluate breakpoint condition '{ condition } ': { e } ") ;
924
924
bp . ConditionAlreadyEvaluatedWithError = true ;
925
- SendExceptionToTelemetry ( e , "EvaluateCondition" , sessionId , token ) ;
925
+ ReportDebuggerExceptionToTelemetry ( "EvaluateCondition" , sessionId , token ) ;
926
926
}
927
927
return false ;
928
928
}
@@ -1521,27 +1521,27 @@ private async Task<bool> OnEvaluateOnCallFrame(MessageId msg_id, int scopeId, st
1521
1521
catch ( ReturnAsErrorException ree )
1522
1522
{
1523
1523
SendResponse ( msg_id , AddCallStackInfoToException ( ree . Error , context , scopeId ) , token ) ;
1524
- SendExceptionToTelemetry ( ree , "OnEvaluateOnCallFrame" , msg_id , token ) ;
1524
+ ReportDebuggerExceptionToTelemetry ( "OnEvaluateOnCallFrame" , msg_id , token ) ;
1525
1525
}
1526
1526
catch ( Exception e )
1527
1527
{
1528
1528
logger . LogDebug ( $ "Error in EvaluateOnCallFrame for expression '{ expression } ' with '{ e } .") ;
1529
1529
var ree = new ReturnAsErrorException ( e . Message , e . GetType ( ) . Name ) ;
1530
1530
SendResponse ( msg_id , AddCallStackInfoToException ( ree . Error , context , scopeId ) , token ) ;
1531
- SendExceptionToTelemetry ( e , "OnEvaluateOnCallFrame" , msg_id , token ) ;
1531
+ ReportDebuggerExceptionToTelemetry ( "OnEvaluateOnCallFrame" , msg_id , token ) ;
1532
1532
}
1533
1533
1534
1534
return true ;
1535
1535
}
1536
1536
1537
- private void SendExceptionToTelemetry ( Exception exc , string callingFunction , SessionId msg_id , CancellationToken token )
1537
+ private void ReportDebuggerExceptionToTelemetry ( string callingFunction , SessionId msg_id , CancellationToken token )
1538
1538
{
1539
- JObject reportBlazorDebugError = JObject . FromObject ( new
1539
+ JObject reportBlazorDebugException = JObject . FromObject ( new
1540
1540
{
1541
1541
exceptionType = "uncaughtException" ,
1542
- error = $ "{ exc . Message } at { callingFunction } ",
1542
+ exception = $ "BlazorDebugger exception at { callingFunction } ",
1543
1543
} ) ;
1544
- SendEvent ( msg_id , "DotnetDebugger.reportBlazorDebugError " , reportBlazorDebugError , token ) ;
1544
+ SendEvent ( msg_id , "DotnetDebugger.reportBlazorDebugException " , reportBlazorDebugException , token ) ;
1545
1545
}
1546
1546
1547
1547
internal async Task < GetMembersResult > GetScopeProperties ( SessionId msg_id , int scopeId , CancellationToken token )
0 commit comments