Browse Source

Breakpoint must be set within method body. (Forum-7107)

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1365 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
7d76c1cb1b
  1. 8
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/SourcecodeSegment.cs

8
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/SourcecodeSegment.cs

@ -158,7 +158,7 @@ namespace Debugger @@ -158,7 +158,7 @@ namespace Debugger
function = null;
ilOffset = 0;
Module module = null;
Module module = null;
ISymUnmanagedReader symReader = null;
ISymUnmanagedDocument symDoc = null;
@ -206,7 +206,11 @@ namespace Debugger @@ -206,7 +206,11 @@ namespace Debugger
}
ISymUnmanagedMethod symMethod;
symMethod = symReader.GetMethodFromDocumentPosition(symDoc, validLine, (uint)StartColumn);
try {
symMethod = symReader.GetMethodFromDocumentPosition(symDoc, (uint)StartLine, (uint)StartColumn);
} catch {
return false; //Not found
}
function = module.CorModule.GetFunctionFromToken(symMethod.Token);

Loading…
Cancel
Save