Answered by:
LanguageService GUID in IVsDebugger.InsertBreakpointByName()

Question
-
Hi,
I want to call this API
IVsDebugger.InsertBreakpointByName()
but I don't know what value I should use for the first parameter. The doc says it's "The GUID for the language service such as SID_SVisualBasicLangService.". But I cannot find where SID_SVisualBasicLangService is defined. Anyway, what I need is the GUID for Visual C++.
Thanks !
Friday, January 20, 2017 12:48 AM
Answers
-
Hi LingW_2008,
The following code provide a usage of IVsDebugger.InsertBreakpointByName() for your reference.
About project Guid, please refer to:
About project type Guid, please refer to:
http://tekeye.uk/visual_studio/microsoft-visual-studio-project-type-guids-and-project-guids
Best regards,
Cole Wu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Zhanglong WuMicrosoft contingent staff Friday, January 20, 2017 9:57 AM
- Proposed as answer by Zhanglong WuMicrosoft contingent staff Wednesday, January 25, 2017 2:47 AM
- Marked as answer by LingW_2008 Monday, January 30, 2017 10:05 PM
Friday, January 20, 2017 9:54 AM
All replies
-
Hi LingW_2008,
The following code provide a usage of IVsDebugger.InsertBreakpointByName() for your reference.
About project Guid, please refer to:
About project type Guid, please refer to:
http://tekeye.uk/visual_studio/microsoft-visual-studio-project-type-guids-and-project-guids
Best regards,
Cole Wu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Edited by Zhanglong WuMicrosoft contingent staff Friday, January 20, 2017 9:57 AM
- Proposed as answer by Zhanglong WuMicrosoft contingent staff Wednesday, January 25, 2017 2:47 AM
- Marked as answer by LingW_2008 Monday, January 30, 2017 10:05 PM
Friday, January 20, 2017 9:54 AM -
Hi Cole,
After looking at the example code, I just used a new random GUID as parameter for the function and it works. That does not seem right as the API doc says it should be GUID of a language service. Maybe just the implementation is very tolerant :)
Anyway, that at least served my need. Thanks !
Ling
- Proposed as answer by Zhanglong WuMicrosoft contingent staff Wednesday, January 25, 2017 2:47 AM
Monday, January 23, 2017 3:56 PM -
Hi LingW_2008,
I am glad to know that you resolve the issue, please mark it as answer, it will be beneficial to other communities who have the similar issue.
Best regards,
Cole Wu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Wednesday, January 25, 2017 9:30 AM