This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Running "Debug" keeps changing file and cursor position

Tags: None
(comma "," separated)
12oclocker
Registered Member
Posts
4
Karma
0
I have been using KDevelop for about a month now, and something is driving me absolutely crazy and I cannot find a fix...
When I click "Debug" to start debugging, the file I had open and the position of my cursor completely changes!
It's like debugging keeps track of my file and cursor position independently of when I am not debugging, and it's driving me nuts and totally slowing down my work flow!!
Scenario... I just wrote a new function and want to step through it with the debugger. I start the debugger and BAM! I am magically rerouted to a totally different open file and cursor position of where I was last time the debugger was ran. Totally annoying! Please help, how can I keep this from happening!
I don't want to be "where I was last time" every time the debugger is ran, I want to be "where I am writing code Now" when the debugger is run.
Thanks in advance for anyone that can help
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hm, I think it should not happen, but I remember there being a bug which sometimes happens which causes that ... :(


I'm working on the KDevelop IDE.
12oclocker
Registered Member
Posts
4
Karma
0
"Debug" keeps changing file and cursor position looks to be by design, I sure hope someone puts a option in their to fix or disable that feature!
It also happens with the searching feature, every file has it's own search history list. Which is also very counter productive for me, because I cannot press F3 to search for something, and simply click the tab for a different file and press F3 again; instead it will search for a totally different text string which I may have search for an hour ago... not helpful when I have 5 tabs open and only want to search for something between two or three of those tabs; which is the situation that occurs most often.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
What is by design is that the set of files you have open is separate, but that the cursor position and open file changes when you switch between code and debug is a bug, and not by design, as I just stated. The search history thing is indeed by design, but completely unrelated.


I'm working on the KDevelop IDE.
12oclocker
Registered Member
Posts
4
Karma
0
gotcha, thanks...
Do you have any suggestions for me to solve these issues?
My version 4.14.2 running on Debian based bunsenlabs linux.
Is their a way to make search so that it has a single history for all files, Instead of having a search history for each file. Or is that hardcoded into the source?
Also do you know if that "Debug changing file and cursor position" is resolved in the newest version? Maybe I can somehow install it on my system (even though my repository has the newest version as 4.14.2)

Last edited by 12oclocker on Thu Feb 01, 2018 12:13 am, edited 1 time in total.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
The search thing is by design, if you wanted to change that, you could start a discussion on the kate mailing list and convince people that it's better to have it be always the same.

The other issue is a bug, "patches welcome" ...


I'm working on the KDevelop IDE.
12oclocker
Registered Member
Posts
4
Karma
0
I just downloaded the kdevelop source...
I have a huge project I have to finish, when I get some free time maybe I can find some time to fix it.
I wonder if everyone experiences the bug? it seems almost impossible to navigate with the file and cursor constantly changing around all the time, I image not everyone is affected or it probably would have been resolved already.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Yeah, iirc it "sometimes™" works :/
Sorry, I cannot tell you anything more without debugging it myself.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]