microsoft / vscode-mono-debug
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 113 units with 1,497 lines of code in units (81.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (257 lines of code)
    • 2 medium complex units (101 lines of code)
    • 8 simple units (248 lines of code)
    • 101 very simple units (891 lines of code)
0% | 17% | 6% | 16% | 59%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 18% | 7% | 17% | 56%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
csharp0% | 18% | 7% | 17% | 56%
typescript0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public override async void Launch()
in src/csharp/MonoDebugSession.cs
167 39 2
protected override void DispatchRequest()
in src/csharp/DebugSession.cs
90 26 3
public override void SetBreakpoints()
in src/csharp/MonoDebugSession.cs
56 16 2
public override void Evaluate()
in src/csharp/MonoDebugSession.cs
45 11 2
private static void Main()
in src/csharp/MonoDebug.cs
40 10 1
public override void Variables()
in src/csharp/MonoDebugSession.cs
36 10 2
public override void StackTrace()
in src/csharp/MonoDebugSession.cs
41 9 2
private void SetExceptionBreakpoints()
in src/csharp/MonoDebugSession.cs
28 9 1
28 9 1
private void ProcessData()
in src/csharp/Protocol.cs
26 7 0
public static void Log()
in src/csharp/MonoDebug.cs
30 6 2
protected void SendMessage()
in src/csharp/Protocol.cs
19 6 1
public override void Disconnect()
in src/csharp/MonoDebugSession.cs
26 5 2
private void Terminate()
in src/csharp/MonoDebugSession.cs
10 5 1
private Variable CreateVariable()
in src/csharp/MonoDebugSession.cs
8 5 1
private void Dispatch()
in src/csharp/Protocol.cs
30 5 1
public static string ExpandVariables()
in src/csharp/Utilities.cs
19 5 3
function configureExceptions()
in src/typescript/extension.ts
21 5 0
17 4 1
private static void RunServer()
in src/csharp/MonoDebug.cs
25 4 1