debugging

FactoMineR PCA with factor variables

我是研究僧i 提交于 2020-01-15 09:23:28
问题 Here is a link to the data in R data format (so you can see that the factors are actually factors): Vaccination Data 2016 Here is the code: df %>% PCA(scale.unit = TRUE, quali.sup = 14, #the factor variables graph = T) Aside from telling me that it replaced missing values with means (which I was happy to see), the above produces this: argument is not numeric or logical: returning NA argument is not numeric or logical: returning NA argument is not numeric or logical: returning NA argument is

Set Visual Studio (conditional) breakpoint on local variable value

允我心安 提交于 2020-01-15 08:32:11
问题 I'm trying to debug a method which among other things, adds items to a list which is local to the method. However, every so often the list size gets set to zero "midstream". I would like to set the debugger to break when the list size becomes zero, but I don't know how to, and would appreciate any pointers on how to do this. Thanks. 回答1: Why not use conditional breakpoints? http://blogs.msdn.com/saraford/archive/2008/06/17/did-you-know-you-can-set-conditional-breakpoints-239.aspx 回答2: in C#

Use of ARM semihosting

空扰寡人 提交于 2020-01-15 06:59:14
问题 I have configured a Freescale Kinetis MQX BSP to use the "iodebug:" semihosting device with an IAR IDE and J-Link debugger. The configuration "works" in that text appears in the IDE console window. The output is jerky and slow - Maybe 5 seconds to output a 16x64 block of text. During output operations the CPU appears to be stalled for long periods of time, ie. operations with strict timing requirements go off into the weeds. Is this typical performance for semihosting, or am I missing

Weird behaviour when running ClickOnce deployed version of WPF application

半腔热情 提交于 2020-01-15 06:43:12
问题 We have a Navigation Based WPF application. It works fine when running directly from Visual Studio, or even if we copy the files to another directory or another computer and run it there. We deploy the application over the internet using ClickOnce and most of the time this does not cause any problems. Every now and then however, it just freezes completely and you get the classic "Application xxxx is not responding" and a non responsive UI. This does not happen every time, and only when using

How to debug CUDA kernels in Visual studio or Parallel Nsight

核能气质少年 提交于 2020-01-15 04:41:08
问题 I have CUDA 4.1 SDK with Parallel Nsight 2.1 installed on Win7 x64. I want to debug my CUDA kernels, how to do this? Is this possible with one GPU? There is a utility Nsight Monitor. I have tried it, first disabled Timeout Detection and Recovery on Windows, and disable WPF, as Nsight monitor told me. I set a breakpoint in VS, run the code but nothing happend. Nsight monitor said i am connected. So can i debug in VS or shall i debug in Parallel Nsight? How to? Thanks a million. 回答1: If you

How to use Clutch for debugging SQL statements executed by the Entity Framework?

核能气质少年 提交于 2020-01-15 03:27:16
问题 I am very new to the Entity Framework. Tried to save an object and it fails with the message error in saving entities which do not make foreign key properties available As something wrong happens when EF tries writing to the database, I wanted to see the actual query it is trying to execute. I am not yet using EF 6, so I can't use context.Database.Log. Some search told me that there is a library called Clutch Diagnostics which will help me. I installed it from NuGet and set it up as described

Running WinDbg in headless mode

天大地大妈咪最大 提交于 2020-01-15 01:19:28
问题 Is there a way to WinDbg in pure headless mode ? My use case is that I should be able to imitate "!analyze -v" command for a minidump on command line without launching WinDbg GUI. 回答1: With the Debugging Tools for Windows, there is also cdb , the console debugger. To debug a crash dump, use the -z "<dump>" option. To run a command immediately, use -c "<command>" . To output everything into a file you can redirect the output with a usual DOS > <file> or open a log file using .logopen <file> .

Why won't my solution work to find minimum depth of a binary tree?

只愿长相守 提交于 2020-01-14 19:34:09
问题 I don't understand how my solution for finding minimum depth of a binary tree doesn't work? What am I doing wrong? Here's a link to the problem if you're curious: https://leetcode.com/problems/minimum-depth-of-binary-tree/submissions/ public int minDepth(TreeNode root) { if(root == null) return 0; int left = minDepth(root.left); int right = minDepth(root.right); int ans = Math.min(left, right) + 1; return ans; } 回答1: Your code will not work in the case only one side is null , like 3 / \ 20 /

Android Eclipse Stuck Launching Delegate Debugging Session at 27%

别等时光非礼了梦想. 提交于 2020-01-14 19:26:07
问题 Eclipse seems stuck at 27% "Launching MyProject (27%)" is there anywhere eclipse might explain more. I really don't have 30 minutes to watch this ... I mean if there is something in its way could like a resource that it needs where does it indicate what the issue is during these long periods ......................... 回答1: see Eclipse gets stuck when trying to launch Android app When you start Eclipse. Launch the emulator first (Window | AVD Manager | Start) and leave it running in the

Getting Error message “No ”concat“ targets found” when running grunt-usemin

自作多情 提交于 2020-01-14 14:39:21
问题 My grunt file is shown below: module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: 'src/**/*.js', dest: 'dist/<%= pkg.name %>.min.js' } }, watch: { js: { files: ['src/**/*.js'], options: { livereload: '<%= connect.options.livereload %>' } }, livereload: { options: { livereload: '<%= connect.options.livereload %>