Unable to debug a Linux app after disabling serial console

Sysprogs forums Forums VisualGDB Unable to debug a Linux app after disabling serial console

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28987
    dave H
    Participant

    I am attempting to develop an application for a Raspberry Pi that uses the serial port.  My development environment is based on VisualGDB and VS2019 and the target Linux distro is the latest 32 bit Raspian Linux (2020-08-20).  To use the serial port I have had to stop Linux from taking possession of the port by disabling the serial console in the Raspberry Pi configuration.  The problem I have after disabling the serial console is that I am unable to run the application (via GDB anyway) and attempting to do so results in the attached error window.  I don’t understand the connection between VisualGDB and the serial console, is there a configuration option to fix this issue?

    Attachments:
    You must be logged in to view attached files.
    #28989
    dave H
    Participant

    Sorry, the error has more details which were not shown in the first snippet, see new attachment.

    Attachments:
    You must be logged in to view attached files.
    #28992
    support
    Keymaster

    Hi,

    This looks like the temporary directory where the project was built got deleted after a restart. Please try rebuilding the project and you should be able to debug it again.

    #28993
    dave H
    Participant

    Thankyou, that was indeed the case, but I don’t understand why the folder should have been deleted, but then it was in the temp folder so I guess it is valid.  On that basis, I noticed that in the VisualGDB project settings the project directory can be specifically specified, however I tried to move it into the Home folder, and other folders, but I cannot get any other folder to work except the one in the tmp directory.  Is there something else I have to do to move the project folder out of the tmp directory?

    #29002
    support
    Keymaster

    The contents of the /tmp folder is normally deleted when you restart the target. That said, normally, just building the project again would re-upload the files to it.

    You can also change the remote folder used to upload the files via VisualGDB Project Properties -> Linux Project.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.