Skip to content

Commit

Permalink
Merge pull request #602 from JohanMabille/copy_to_globals
Browse files Browse the repository at this point in the history
Fixed m_copy_to_globals_available definition
  • Loading branch information
JohanMabille committed Nov 13, 2023
2 parents e68ca17 + 9cb4276 commit 46b16b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xdebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ namespace xpyt
nl::json debugger::copy_to_globals_request(const nl::json& message)
{
// This request cannot be processed if the version of debugpy is lower than 1.6.5.
if (m_copy_to_globals_available)
if (!m_copy_to_globals_available)
{
nl::json reply = {
{"type", "response"},
Expand Down Expand Up @@ -300,7 +300,7 @@ namespace xpyt
std::replace(version.begin(), version.end(), '.', ' ');

// Check if the copy_to_globals feature is available
m_copy_to_globals_available = less_than_version(version, "1 6 5");
m_copy_to_globals_available = !less_than_version(version, "1 6 5");
}
return status == "ok";
}
Expand Down

0 comments on commit 46b16b8

Please sign in to comment.