New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDB port conflict Again #117
Comments
Will try to look into this - it should be checking to see if the ports are free before trying to use them - so it's a bit strange. The reason I don't use a hard-coded one (or the particular probes defaults) is that it causes issues if you have two simultaneous debug sessions at the same time. What OS are you working on - it could be that the library that I'm using to check to see if the ports are in use is not working properly on that OS. |
Just to chime in - I had this as well on latest Windows 10 update (october one?) and latest version of VScode as well. |
It's possible it is something with the |
I'll let you know tomorrow - I only use Windows at work. |
Thanks. I am using windows 10 64-bit. I tried running as administrator but had the same issue. |
Ok - I’ll try getting setup in a win 10 environment and see what I can
figure out. What things other than iTunes seemed to cause conflicts, just
trying to make sure I have things that may recreate the problem.
…On Sunday, January 20, 2019, slademcthornbody ***@***.***> wrote:
Thanks. I am using windows 10 64-bit. I tried running as administrator but
had the same issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#117 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeirf6Urkxu7qC5LugF2-0OFoMPtobpks5vFNuFgaJpZM4aHC2V>
.
--
Marcel Ball <maball@gmail.com>
-----------------------------------------------
The purpose of writing is to inflate weak ideas,
obscure pure reasoning, and inhibit clarity.
With a little practice, writing can be an intimidating
and impenetrable fog!
- Calvin
|
Thanks - also had Dropbox and lifesize video conf software claim the port. |
Thanks for the info. Will try to get a Win 10 VM setup to try and determine why it is not properly detecting that the ports are in use and selecting a different one; may also add a workspace setting as well to override the starting port that is searches from; currently it should select the first 1 to 3 (depending on the particular options and how many ports it needs) available ports starting at 50000, but apparently in some cases it's missing that key "available" word. |
No difference with Admin run as well. |
I have the same issue since updating to Windows 18.09. |
Any progress on this issue? Working on getting the environment setup so I can build this extension and modify |
Have added an optional port range for portastic that works around this issue. Pull request added. |
Before using VSCode and your amazing extension, I used to use SW4STM. They allowed a config parameter to set the gdb port number. The primary benefit is that this allowed me (and others) to debug multiple boards simultaneously, by having multiple OpenOCD processes running - one for each board. Will your port cycling method allow this? (I tried it with the current Insiders build, and it gives errors on the second board because port 5000 is already in use). |
Hi @Marus, In the comment referenced below, you suggest that you can have two simultaneous debug sessions. I have two boards, a STM32F4 and a STM32F7. If I try to start a debug session on either board while the other is already in a debug session, I get an error ...
Any pointers/suggestions?
|
The port selection issues should hopefully be fixed in the new 0.2.7 release which has big improvements for port selection from @haneefdm |
Hi @Marus, I began to experience the same issue on Ubuntu 16.04 after upgrading to version 0.2.7, where I get a popup saying Downgrading to 0.2.6 seems to resolve the problem. I'm happy to supply additional information if that helps! |
Hi, sorry for jump in to this old topic, may I ask a silly question that is there any plan to add a configuration to allow my launch to set these ports' number? Why I am asking is because I actually have 3 different apps, one of them can't be programed to use 5000 because of certain reason, allow my customization on the port could significantly reduce my complexities. |
I don't know if there are plans for users to provide port numbers. But, if port 50000 is in use, cortex-debug should be avoiding it. Maybe I can help with that. May I ask if you are seeing a problem with this? |
You can use my fork - I made a mod to allow port number to be set |
Thanks Slade, I will check it out, btw, I found this gnu debugger "https://marketplace.visualstudio.com/items?itemName=metalcode-eu.gnu-debugger" |
I can use below attribute to select the gdbserver port:
Why not just simply add an attribute to let the user select the port for gdb client?? I see from here that there's an
|
What about TCP ports for SWO, RTT, a 2nd or 3rd core, multiple boards, etc. There is a lot more to it. The gdbTarget is for people who... well you already know what that is. Sorry, this is not up for debate. This is how we do it. |
Having same issue as per #24 on V0.1.21.
Found many other apps were claiming port 50000 and cortex-debug was still trying to open on port 50000 and failing.
I had to close about 3 apps - when I closed each one, another would claim 50000 (itunes, dropbox etc)
I think a setting to override the port to a fixed value (JLINK defaults to 2331) would help.
Thanks
The text was updated successfully, but these errors were encountered: