Forum Replies Created
-
AuthorPosts
-
JensaParticipant
I’ve noticed the same issue.
I think the issues come with the decision to not start VisualGDB when Visual Studio starts but rather “when it’s needed”. The problem is I don’t think it works when you start Visual Studio and at the same time opening a solution with VisualGDB projects, IE starting it by opening a .sln file etc. Then it doesn’t seem to recognise that it should actually start VisualGDB.
My current solution is to just open the “HELP -> About VisualGDB” window. That will load VisualGDB and the properties appear.
JensaParticipantThe source path in the “Debug settings” tab under “Deployment”. See screenshot.
Attachments:
You must be logged in to view attached files.JensaParticipantThanks for the tip,
The second option seemed simplest but I ran into an issue. The “Source path” in the deployment settings isn’t editable so I can’t change the application that’s deployed. It looks like it’s supposed to be editable though since it’s not greyed out but no caret shows up when trying to edit it and nothing gets changed when typing?
Regards
Jens NilssonJensaParticipantThanks,
I can confirm that it indeed works again with that build.
- This reply was modified 5 years, 9 months ago by Jensa.
JensaParticipantUnfortunately ‘xargs –help’ doesn’t return anything other than:
BusyBox v1.24.1 (2019-02-12 12:52:35 CET) multi-call binary. Usage: xargs [OPTIONS] [PROG ARGS]
We’re not able to update busybox for this target but I at least managed to build the SysprogsSync using our old toolchain and it was compatible enough to be able to run with it and sync so we can use that as a workaround for now.
JensaParticipantHi,
I tried it again with that version and got a different error this time:
Using slow synchronization engine 'file-by-file' Stderr line received 'xargs: invalid option -- '0'' Stderr line received 'BusyBox v1.24.1 (2019-01-22 14:14:26 CET) multi-call binary.' Stderr line received '' Stderr line received 'Usage: xargs [OPTIONS] [PROG ARGS]'
JensaParticipantHi,
The “WriteFile failed” error was indeed probably from the same “null” error yes. Got it now and payed more attention to it and it was a null error at the same time. The additional logging says that it tries to write 2 characters only. Perhaps a new line or similar white-space characters that visual studio categorizes as empty?
Anyway, attached are test output and diagnostic console logs.
Attachments:
You must be logged in to view attached files.JensaParticipantHi again,
Now I got the crash error null exception error again and it looks like the callstack is the same as well. Using the build 2443 above:
[2018-09-25 15:19:25 Error] The parameter cannot be null or empty. Parameter name: message [2018-09-25 15:19:25 Informational] System.ArgumentException: The parameter cannot be null or empty. [2018-09-25 15:19:25 Informational] Parameter name: message [2018-09-25 15:19:25 Informational] at Microsoft.VisualStudio.TestPlatform.Common.Logging.TestSessionMessageLogger.SendMessage(TestMessageLevel testMessageLevel, String message) [2018-09-25 15:19:25 Informational] at VisualGDBTestExtensionShared.VisualGDBTestExecutor.ReportTestResults(String testContainer, bd ctx, IBasicStream stream, Dictionary
2 selectedTests, List
1 tests, IFrameworkHandle frameworkHandle) [2018-09-25 15:19:25 Informational] at VisualGDBTestExtensionShared.VisualGDBTestExecutor.RunTestsInSource(String source, Dictionary` 2 selectedTests, IRunContext runContext, IFrameworkHandle frameworkHandle) [2018-09-25 15:19:25 Informational] at VisualGDBTestExtensionShared.VisualGDBTestExecutor.RunTests(IEnumerable`1 tests, IRunContext runContext, IFrameworkHandle frameworkHandle) [2018-09-25 15:19:25 Error] An exception occurred while invoking executor 'executor://visualgdb/TestRunner': The parameter cannot be null or empty. Parameter name: message- This reply was modified 6 years, 2 months ago by Jensa.
JensaParticipantHi,
We managed to find the bug without HW breakpoints now. But we’ll probably get to the point where we need it again and I’ll try the suggestions again then.
Thanks!
JensaParticipantHi,
Today the testhost.x86.exe crashed while debugging some test cases. Was able to repeat it with the diagnostics console enabled and got the following logged:
Exception while forwarding test output: WriteFile failed, win32 error code 109 ------------------ System.ComponentModel.Win32Exception ------------------ System.ComponentModel.Win32Exception (0x80004005): WriteFile failed, win32 error code 109 at u7.s(IntPtr a, Byte[] c, Int32 b) at ny.a()
The tests still ran however when it crashed and all completed successfully without errors.
Our biggest problem with these issues is that whenever something crashes or something all tests that wasn’t already run gets removed from the Test Explorer window. Sometimes we can then get them back by simply changing a line of code and getting the test project to build and identify tests again but that doesn’t always help either. Perhaps a workaround would be to not remove any test cases from the test explorer when something goes wrong and simply update the pass/fail of the test cases that did run before the crash. That would at least save us a lot of time so we don’t have to try and get the tests back and when they do the history is then lost.
Regards
Jens NilssonJensaParticipantHi,
I tried it with the watch command and the command was successful but the watchpoint was still not hit then either.
After some googling I found I could change to SW watchpoints with the “set can-use-hw-watchpoints 0” and then they work. Unfortunately everything is way too slow then for my real applications so it doesn’t work there either.The target type is Linux and I’m using a gdbserver. The target is a yocto based linux distribution on a imx6dl CPU which should theoretically support HW watchpoints. Unfortunately that’s beyond my embedded linux knowledge.
Thanks for trying!
JensaParticipantHi,
I tried to add data breakpoints today when running VisualGDB build 2436 but they don’t seem to get hit even though that memory is written to. Is this still working or am I doing something wrong?
Tried both manually and using the context menu mentioned above but they are not hit when the memory is written to.
Regards
Jens NilssonJensaParticipantHi,
Thanks for that fix. It improved it a lot.
I finally got some more time to work on our testing and got some more issues like the one above. Got this while trying to debug a single test I think:
[2018-09-20 09:07:26 Error] The parameter cannot be null or empty. Parameter name: message [2018-09-20 09:07:26 Informational] System.ArgumentException: The parameter cannot be null or empty. [2018-09-20 09:07:26 Informational] Parameter name: message [2018-09-20 09:07:26 Informational] at Microsoft.VisualStudio.TestPlatform.Common.Logging.TestSessionMessageLogger.SendMessage(TestMessageLevel testMessageLevel, String message) [2018-09-20 09:07:26 Informational] at VisualGDBTestExtensionShared.VisualGDBTestExecutor.ReportTestResults(String testContainer, kj1 ctx, IBasicStream stream, Dictionary
2 selectedTests, List
1 tests, IFrameworkHandle frameworkHandle) [2018-09-20 09:07:26 Informational] at VisualGDBTestExtensionShared.VisualGDBTestExecutor.RunTestsInSource(String source, Dictionary` 2 selectedTests, IRunContext runContext, IFrameworkHandle frameworkHandle) [2018-09-20 09:07:26 Informational] at VisualGDBTestExtensionShared.VisualGDBTestExecutor.RunTests(IEnumerable`1 tests, IRunContext runContext, IFrameworkHandle frameworkHandle) [2018-09-20 09:07:26 Error] An exception occurred while invoking executor 'executor://visualgdb/TestRunner': The parameter cannot be null or empty. Parameter name: messageThe other error I got above is a bit tricky because it doesn’t seem to happen when I actually debug the code and neither when we just run the tests like a normal application. But I get it sometimes and when I get annoyed enough by it I’ll investigate more 🙂
JensaParticipantThanks!
It now works great again.
Regards
Jens NilssonJensaParticipantForgot to add that the buildnr is 2413.
-
AuthorPosts