Comments (4)
I also could reproduce this issue with Console.ReadKey()
. Looks like Console.ReadKey()
can't work with layer we have implemented over real console for debuggee process.
from netcoredbg.
Not sure we will implement this for MI/GDB or VSCode protocols, since this mean support external console for application stdin/stdout, that not in plans.
Works fine with CLI:
viewizard@VirtualBox123:~/Desktop/projects/netcoredbg/bin$ ./netcoredbg -- dotnet '/home/viewizard/Desktop/projects_test/test_interop/bin/Debug/net6.0/test_interop.dll'
ncdb> r
thread created, id: 5595
^running
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/System.Private.CoreLib.dll
no symbols loaded, base address: 0x7f4f102b0000, size: 10610176(0xa1e600)
library loaded: /home/viewizard/Desktop/projects_test/test_interop/bin/Debug/net6.0/test_interop.dll
symbols loaded, base address: 0x7f4f882b3000, size: 6144(0x1800)
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/System.Runtime.dll
no symbols loaded, base address: 0x7f4f882ab000, size: 32256(0x7e00)
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/System.Threading.Thread.dll
no symbols loaded, base address: 0x7f4f882a9000, size: 5632(0x1600)
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/System.Console.dll
no symbols loaded, base address: 0x7f4f10e30000, size: 376832(0x5c000)
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/System.Runtime.InteropServices.dll
no symbols loaded, base address: 0x7f4f10e90000, size: 238592(0x3a400)
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/System.Threading.dll
no symbols loaded, base address: 0x7f4f10ed0000, size: 266752(0x41200)
library loaded: /home/viewizard/Desktop/SDK/dotnet-sdk/shared/Microsoft.NETCore.App/6.0.22/Microsoft.Win32.Primitives.dll
no symbols loaded, base address: 0x7f4f10f40000, size: 210944(0x33800)
Managed: Start
thread created, id: 5618
start thread1
mmmmm234234234
Managed: test input=mmmmm234234234
Managed: test output
Native: Start
native_method_test1
thread exited, id: 5618
werwerwer1234234234234234
Native: test input=werwerwer1234234234234234
native_method_test1
native_method_test2
test_delegate
test_delegate
Native: test output
Native: End
thread created, id: 5620
thread exited, id: 5620
Managed: End
thread created, id: 5616
stopped, reason: exited, exit-code: 0
^exit
from netcoredbg.
Hmm odd, whenever running this from cli with a simple console app it always returns a System.InvalidOperation with a message saying the application is probably not ran through an interactive console or stdin is being redirected
from netcoredbg.
Update: found out readline is fine but readkey returns the error. Could be due to some oddities in how console.readkey deals with terminal events?
from netcoredbg.
Related Issues (20)
- Incorrect thread identified as "Main Thread" in --attach mode HOT 2
- Debugger.Break in non-user code HOT 11
- How to change current thread? HOT 6
- netcoredbg process crashes when pausing after the last debugged thread ended HOT 6
- Break if bad breakpoint condition HOT 3
- Stepping issues HOT 2
- LaunchRequest not working HOT 9
- Windows Defender false positive HOT 3
- `source` of `OutputEvent` is `string` instead of `Source` HOT 6
- Unable to load `dbgshim.dll` after building from source HOT 5
- The value of type double? property in class is confusing HOT 4
- `Assertion failed: !read_lock` when building from source HOT 3
- `InitializedEvent` before `InitializeResponse`
- Build hangs at Creating new dotnet project HOT 6
- Support for launchSettings.json related options in DAP launch request HOT 8
- Segfault when debugging minimal project HOT 4
- Location missing if unhandled Exception occurred in async Main HOT 2
- Shows warning even though works properly HOT 5
- Debug.Writeline Exits Console App HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcoredbg.