Skip to content
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

LLDB steps into nothing for 1 step-over #1180

Open
Raduq91 opened this issue Nov 12, 2024 · 0 comments
Open

LLDB steps into nothing for 1 step-over #1180

Raduq91 opened this issue Nov 12, 2024 · 0 comments

Comments

@Raduq91
Copy link

Raduq91 commented Nov 12, 2024

LLDB steps into nothing for 1 step-over, variables are gone from the panel, I press Step-Over again, variables appear again in the left panel and it continues the for loop.
image
image


Different issue:

Clicking on OUTPUT and then on Debug gives error '...\extension-output-formulahendry.exe does not exist. ':

"type": "lldb",
      "request": "launch",
      "name": "Launch lldb",
      "program": "${workspaceFolder}//${fileBasenameNoExtension}.exe",
      "args": [],
      "cwd": "${workspaceFolder}"

image

OS:
Microsoft Windows [Version 10.0.19045.4894]

VSCode version:
Version: 1.85.2
Release: 24019
Commit: c8a36a69377856369f139f39ee56dd3838130fbf
Date: 2024-01-19T18:35:30.339Z
Electron: 25.9.7
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
CodeLLDB version:
lldb version 19.1.0-codelldb
Compiler:
MSVC_VERSION=14.39.33519
Debuggee: test.exe

code(test without 'import std.core;' and using the include, same issue:







import std.core;
// #include <iostream>
// #include <process.h>
// #include <vector>
// #include <string>
// #include <algorithm>
// #include <cctype>
// #include <array>
// #include <bitset>
// #include <map>  
// #include <stdlib.h>
// #include <string.h>

// #include <sstream> // split words

// #include <stddef.h>



//using namespace std;



class Solution {
public:
    std::vector<int> twoSum(std::vector<int>& nums, int target) {
    std::vector<int> out(2,0);
    //out[0]=1;
    std::unordered_map<int, int> umap;
    for(int i=0;i<nums.size();i++)
    {
        int lol=target-nums[i];
        if (umap.find(lol) != umap.end())
		{
		return {umap[lol], i};
		}
        else{
			umap[nums[i]]=i;
			}   
                
    }
    return out;
    }
};

int main()
{
	Solution solution;
	std::vector<int> arz = {3, 9, 11, 15, 2, 7};
  	std::cout << solution.twoSum(arz, 9)[0] << std::endl;
	std::cout << solution.twoSum(arz, 9)[1] << std::endl;

	int x = 42;
	int y = 5;

	std::cout << "test" << std::endl;
	printf("Your message here\n");

	return 1;
}

Code Runner command line:
"cpp": "cd $dir && cl.exe /EHsc /std:c++latest /experimental:module /Zi /MD /Od $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",

Mention, as workaround I use this for the issue 'steps into nothing' :
target stop-hook add --one-liner "script if lldb.frame.GetLineEntry().GetFileSpec().GetFilename() is None and lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().IsValid() : lldb.debugger.HandleCommand('next')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant