- fix: Can't debug project when project is saved after it's compiled.
This commit is contained in:
parent
68dea2c86a
commit
c637ca3e4b
1
NEWS.md
1
NEWS.md
|
@ -2,6 +2,7 @@ Red Panda C++ Version 2.16
|
||||||
|
|
||||||
- fix: Project files that not in the project folder is not correctly handled in makefile.
|
- fix: Project files that not in the project folder is not correctly handled in makefile.
|
||||||
- enhancement: Improve support for function pointer typedefs.
|
- enhancement: Improve support for function pointer typedefs.
|
||||||
|
- fix: Can't debug project when project is saved after it's compiled.
|
||||||
|
|
||||||
Red Panda C++ Version 2.15
|
Red Panda C++ Version 2.15
|
||||||
|
|
||||||
|
|
|
@ -2051,7 +2051,7 @@ void MainWindow::runExecutable(RunType runType)
|
||||||
QStringList binDirs = mProject->binDirs();
|
QStringList binDirs = mProject->binDirs();
|
||||||
QFileInfo execInfo(mProject->executable());
|
QFileInfo execInfo(mProject->executable());
|
||||||
QDateTime execModTime = execInfo.lastModified();
|
QDateTime execModTime = execInfo.lastModified();
|
||||||
if (execInfo.exists() && mProject->modifiedSince(execModTime)) {
|
if (execInfo.exists() && mProject->unitsModifiedSince(execModTime)) {
|
||||||
//mProject->saveAll();
|
//mProject->saveAll();
|
||||||
mCompileSuccessionTask=std::make_shared<CompileSuccessionTask>();
|
mCompileSuccessionTask=std::make_shared<CompileSuccessionTask>();
|
||||||
mCompileSuccessionTask->type = CompileSuccessionTaskType::RunNormal;
|
mCompileSuccessionTask->type = CompileSuccessionTaskType::RunNormal;
|
||||||
|
@ -2166,14 +2166,14 @@ void MainWindow::debug()
|
||||||
{
|
{
|
||||||
QFileInfo execInfo(mProject->executable());
|
QFileInfo execInfo(mProject->executable());
|
||||||
QDateTime execModTime = execInfo.lastModified();
|
QDateTime execModTime = execInfo.lastModified();
|
||||||
if (execInfo.exists() && mProject->modifiedSince(execModTime)) {
|
if (execInfo.exists() && mProject->unitsModifiedSince(execModTime)) {
|
||||||
//mProject->saveAll();
|
//mProject->saveAll();
|
||||||
mCompileSuccessionTask=std::make_shared<CompileSuccessionTask>();
|
mCompileSuccessionTask=std::make_shared<CompileSuccessionTask>();
|
||||||
mCompileSuccessionTask->type = CompileSuccessionTaskType::Debug;
|
mCompileSuccessionTask->type = CompileSuccessionTaskType::Debug;
|
||||||
mCompileSuccessionTask->execName=mProject->executable();
|
mCompileSuccessionTask->execName=mProject->executable();
|
||||||
mCompileSuccessionTask->isExecutable=true;
|
mCompileSuccessionTask->isExecutable=true;
|
||||||
mCompileSuccessionTask->binDirs=binDirs;
|
mCompileSuccessionTask->binDirs=binDirs;
|
||||||
compile();
|
compile(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue