Code Monkey home page Code Monkey logo

Comments (4)

viewizard avatar viewizard commented on June 7, 2024 1

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.

viewizard avatar viewizard commented on June 7, 2024

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.

Armando-CodeCafe avatar Armando-CodeCafe commented on June 7, 2024

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.

Armando-CodeCafe avatar Armando-CodeCafe commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.