首页 \ 问答 \ 无法连接到远程调试器(Unable to connect to remote debugger)

无法连接到远程调试器(Unable to connect to remote debugger)

我正在Android模拟器Nexus_23中构建一个反应本机应用程序。 我试图连接到远程调试器,但我得到一个超时错误。 在清爽的时候,我被困在一个空白的白色屏幕上。

试过:(1)根据互联网上的一些建议重新安装谷歌浏览器,但仍面临同样的问题。 (2)我设置了我的IP地址(“Dev Settings” - >“Debug server host for device”)xxxx:8081(3)尝试过adb reverse tcp:8081 tcp:8081

react-native:0.52.0反应:16.2.0

请帮助!

无法连接到远程调试器


I am building a react native app in Android Emulator Nexus_23. I am trying to connect to the remote debugger but I get a Timeout error. On refreshing I am stuck on a blank white screen.

Tried: (1) re-installing Google Chrome too according to a few suggestions on Internet but still facing the same problem. (2) I set my ip address ("Dev Settings" -> "Debug server host for device") x.x.x.x:8081 (3) tried adb reverse tcp:8081 tcp:8081

react-native: 0.52.0 react: 16.2.0

Kindly help!

Unable to connect to remote debugger


原文:https://stackoverflow.com/questions/48394893
更新时间:2022-05-16 07:05

最满意答案

你可以试试这个:

article_count = len(articles)
output = "There are {} articles.".format(article_count)

len是一个在对象上调用的函数,format方法已经为你调用了str方法。


You can try this:

article_count = len(articles)
output = "There are {} articles.".format(article_count)

len is a function that you call on a object and the format method already calls the str method for you.

相关问答

更多
  • 解决方案我发现..我应该仔细阅读他们的代码。 多谢你们! lorem_ipsum.paragraphs(3, False) lorem_ipsum.words(3, False) 第二个参数决定是否使用常用词 Solution I found.. I should read their code carefully. Thanks guys! lorem_ipsum.paragraphs(3, False) lorem_ipsum.words(3, False) Second param dec ...
  • 它可以是任何callable 。 这就是例如实现了__call__方法的类。 查看django的基于类视图的文档。 还要检查这个问题,以了解callable 。 It could be any callable. That is e.g. class with __call__ method implemented. Check django's documentation for class based views. Also check this question to get the idea wha ...
  • 你可以试试这个: article_count = len(articles) output = "There are {} articles.".format(article_count) len是一个在对象上调用的函数,format方法已经为你调用了str方法。 You can try this: article_count = len(articles) output = "There are {} articles.".format(article_count) len is a function ...
  • 我可以提出一些建议,至少可以帮助我们找出问题所在: 在您的设置中设置DEBUG = True ,这样您就可以在结果中获得整个回溯而不仅仅是500。 将您在视图中得到的答案发布给我们: 打印请求['POST'] 使用基于您的模型的ModelForm并使用Django内置表单验证来帮助您处理数据。 希望能帮助到你。 Got it - There were 2 problems. First, in the JS, I noticed there were 2 POSTs being performed. I a ...
  • 我会在这里做两件事。 首先,将您的网址格式更改为如下所示: url(r'^getUsers/$', views.getUsers), 其次,将你的AngularJS代码改为如下所示: $http.get("getUsers/") .then(function(output) { $scope.testUser = output; console.log($scope.testUser); }); Django对URL上的“/”(或不是)敏感。 并且改变上面的URL模式使得它明确它应该 ...
  • 这个代码中有很多问题。 strlen和strlent,除非你有一个奇怪的库函数。 你正在堆栈上定义一个静态缓冲区。 这是一个潜在的错误(也是安全问题),因为稍后会将一行字符串复制到它而不检查长度。 可能的解决方案可以是在堆上分配内存(使用strlen和malloc的组合),也可以使用strncpy并接受字符串的切断。 附加'\ n'确实可以解决添加新行的问题,但是这会产生更多的错误,因为字符串当前不是空终止的。 解决方案:追加'\ n'和'\ 0'以终止新字符串。 正如其他人所提到的,你正在返回一个指向局部 ...
  • 我今天早些时候才发现什么是错的。 我没有立即注意到,我试图编辑的页面不是一个django-cms托管页面,这就是占位符不工作的原因。 在django-cms托管页面中,占位符正常工作。 谢谢 I just found out earlier today what was wrong. I didn't notice immediately, that the page i was trying to edit was not a django-cms managed page which is why th ...
  • 当然,你可以解决它。 通过适当的导入和参数,您可以执行此操作。 #app: app1 #someview.py def a_view(request, someparam): #some code here #app: app2 #otherview.py from app1.someview import a_view def another_view(request): param = 1 a_view(request, param) 至于一个例子 更新:希望提及,你的函数a_vie ...
  • 你的urls.py文件设置错误。 第一个参数是一个匹配URL的正则表达式,因此^$将匹配根路径。 name参数用于获取特定视图的URL,例如,当您使用reverse函数时。 ^表示一行的开始, $表示一行的结束。 两者之间没有任何关系,它将匹配一条空行。 要匹配另一个URL,例如/waypoints-save/ ,您需要编写另一个正则表达式: ^/waypoints-save/$ 。 这将匹配行的开头,后跟字符/waypoints-save/ ,然后是行的结尾。 为了让你的整个urls.py设置正确,它应该 ...
  • 我认为你的问题是你试图访问一个post而不迭代posts 。 正如您在post_list视图中看到的post_list ,您有: ... return render(request, 'blog/post_list.html', {'posts': posts}) 因此,您将名为posts的变量发送到模板。 但是在您的模板中,您尝试访问post :

    {{ post.title }}

    但它不 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)